package com.iraeta.entity;

import java.util.Date;

public class WorkLog {
    private int id;
    private int userId;
    private String logText;
    private float useHour;
    private Date createDate;
    private Date logDate;

    public WorkLog(int userId, String logText, float useHour, Date logDate) {
        this.userId = userId;
        this.logText = logText;
        this.useHour = useHour;
        this.logDate = logDate;
        this.createDate = new Date();
    }

    public WorkLog(){
        this.createDate = new Date();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getLogText() {
        return logText;
    }

    public void setLogText(String logText) {
        this.logText = logText;
    }

    public float getUseHour() {
        return useHour;
    }

    public void setUseHour(float useHour) {
        this.useHour = useHour;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getLogDate() {
        return logDate;
    }

    public void setLogDate(Date logDate) {
        this.logDate = logDate;
    }

    @Override
    public String toString() {
        return "WorkLog{" +
                "id=" + id +
                ", userId=" + userId +
                ", logText='" + logText + '\'' +
                ", useHour=" + useHour +
                ", createDate=" + createDate +
                ", logDate=" + logDate +
                '}';
    }
}
